FROM python:3.11-slim-bullseye
LABEL maintainer="KevinQi"
RUN ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo Asia/Shanghai > /etc/timezone
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade pip
WORKDIR /nightingale-tornado/backend
COPY ./pip.conf /root/.pip/pip.conf
COPY . /nightingale-tornado/backend/
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --no-cache-dir --upgrade -r /nightingale-tornado/backend/requirements.txt
EXPOSE 8000
CMD python main.py --port 8000 --host 0.0.0.0
